//
//  WSOrderBaseViewController.h
//  FD
//
//  Created by Yasin on 2018/10/23.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <UIKit/UIKit.h>
/***方便 子类访问model*/
#import "WSOrderModel.h"

@interface WSOrderBaseViewController : UIViewController
/**1.tableView*/
@property (nonatomic,  strong) UITableView *tableView;
/**2.数据源数据 方便子类访问*/
@property (nonatomic,  strong) NSMutableArray *dataArr;

//待付款：0
//待评价：4
////退款/售后：6,7
/**
 请求订单数据  子类重写。

 参数说明 :数组[NSNumber]
 @param status nil:空获取全部数据 ; [0]待付款; [6,7]退款、售后
 
 */
- (void)loadOrderDataWithStatus:(NSArray <NSNumber *>*)status NS_REQUIRES_SUPER;
@end

//服务器返回数据参考

/**
 {"event":"SUCCESS","data":[{"shop":{"thumbnail":"public/f6499e879cc24b649dccec89a2594001","name":"Edenhall","id":1},"createTime":1546933536000,"actualAmount":7.00,"goodsList":[{"thumbnail":"public/f53e3aa04cb04b75987f0ef54c8ef90a","id":187,"title":"Margherita","userOrderDetailId":546}],"id":"201901080000004","paymentType":1,"status":0},{"shop":{"thumbnail":"public/f6499e879cc24b649dccec89a2594001","name":"Edenhall","id":1},"createTime":1546932955000,"actualAmount":5.50,"goodsList":[{"thumbnail":"public/b83504ce8ba54093b72b95b6446b6d53","id":86,"title":"Spring Rolls (x2)","userOrderDetailId":545}],"id":"201901080000003","paymentType":1,"status":0},{"shop":{"thumbnail":"public/f6499e879cc24b649dccec89a2594001","name":"Edenhall","id":1},"createTime":1546932920000,"actualAmount":132.00,"goodsList":[{"thumbnail":"public/404fda1c109744cc8228e8b72a6e294d","id":188,"title":"12\" Your own Pizza","userOrderDetailId":539},{"thumbnail":"public/92af5535db1d4722b4543ddc7d8e5706","id":186,"title":"Pepperoni","userOrderDetailId":540},{"thumbnail":"public/b83504ce8ba54093b72b95b6446b6d53","id":86,"title":"Spring Rolls (x2)","userOrderDetailId":541},{"thumbnail":"public/99966fdda85c4fc8b551fedc8359b5b8","id":155,"title":"Beansprout Salad","userOrderDetailId":542},{"thumbnail":"public/d7df6039ff8e47c79d1a1dad5708b79b","id":185,"title":"BBQ","userOrderDetailId":543},{"thumbnail":"public/99966fdda85c4fc8b551fedc8359b5b8","id":158,"title":"Chicken & Mushroom Soup","userOrderDetailId":544}],"id":"201901080000002","paymentType":1,"status":0}],"describe":""}
 */
